remove suffix with pattern in R dataframe

welcome to shbcf.ru